import axios from 'axios'

// 获取地址识别token

// 地址识别
export const addressParse = (token: string, text: string) => {
  axios({
    url: `https://aip.baidubce.com/rpc/2.0/nlp/v1/address?access_token=${token}`,
    method: 'post',
    headers: { 'Content-Type': 'application/json' },
    data: {
      text,
    },
  })
}
